<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">{{address}}
		<hr >
		<button @click="go(1)">走</button>
		<button @click="run()">跑</button>
		
		</div>
	</body>
	<script>
		new Vue({
			el: "#app",
			data: {
				address: "hello VueJS!"
			},
			methods:{
				run:function(r){
					alert("run ");
				},
				go:function(a){
					alert("go"+a);
				}
			}
		});
	</script>
</html>
